/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.pay.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class PayMchCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static PayMchCriteria create() {
		return new PayMchCriteria();
	}
	
	public static PayMchCriteria create(Column column) {
		PayMchCriteria that = new PayMchCriteria();
		that.add(column);
        return that;
    }

    public static PayMchCriteria create(String name, Object value) {
        return (PayMchCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("pay_mch", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public PayMchCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public PayMchCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public PayMchCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public PayMchCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public PayMchCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayMchCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public PayMchCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayMchCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public PayMchCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public PayMchCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public PayMchCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public PayMchCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public PayMchCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public PayMchCriteria andPayMchIdIsNull() {
		isnull("pay_mch_id");
		return this;
	}
	
	public PayMchCriteria andPayMchIdIsNotNull() {
		notNull("pay_mch_id");
		return this;
	}
	
	public PayMchCriteria andPayMchIdIsEmpty() {
		empty("pay_mch_id");
		return this;
	}

	public PayMchCriteria andPayMchIdIsNotEmpty() {
		notEmpty("pay_mch_id");
		return this;
	}
       public PayMchCriteria andPayMchIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayMchCriteria andPayMchIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.NOT_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayMchCriteria andPayMchIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.GREATER_THEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayMchCriteria andPayMchIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.GREATER_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayMchCriteria andPayMchIdLessThan(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.LESS_THEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayMchCriteria andPayMchIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.LESS_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayMchCriteria andPayMchIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_mch_id", value1, value2, ConditionMode.BETWEEN, "payMchId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayMchCriteria andPayMchIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_mch_id", value1, value2, ConditionMode.NOT_BETWEEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayMchCriteria andPayMchIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_mch_id", values, ConditionMode.IN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayMchCriteria andPayMchIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_mch_id", values, ConditionMode.NOT_IN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }
	public PayMchCriteria andMchIdIsNull() {
		isnull("mch_id");
		return this;
	}
	
	public PayMchCriteria andMchIdIsNotNull() {
		notNull("mch_id");
		return this;
	}
	
	public PayMchCriteria andMchIdIsEmpty() {
		empty("mch_id");
		return this;
	}

	public PayMchCriteria andMchIdIsNotEmpty() {
		notEmpty("mch_id");
		return this;
	}
        public PayMchCriteria andMchIdLike(java.lang.String value) {
    	   addCriterion("mch_id", value, ConditionMode.FUZZY, "mchId", "java.lang.String", "Float");
    	   return this;
      }

      public PayMchCriteria andMchIdNotLike(java.lang.String value) {
          addCriterion("mch_id", value, ConditionMode.NOT_FUZZY, "mchId", "java.lang.String", "Float");
          return this;
      }
      public PayMchCriteria andMchIdEqualTo(java.lang.String value) {
          addCriterion("mch_id", value, ConditionMode.EQUAL, "mchId", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andMchIdNotEqualTo(java.lang.String value) {
          addCriterion("mch_id", value, ConditionMode.NOT_EQUAL, "mchId", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andMchIdGreaterThan(java.lang.String value) {
          addCriterion("mch_id", value, ConditionMode.GREATER_THEN, "mchId", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andMchIdGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("mch_id", value, ConditionMode.GREATER_EQUAL, "mchId", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andMchIdLessThan(java.lang.String value) {
          addCriterion("mch_id", value, ConditionMode.LESS_THEN, "mchId", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andMchIdLessThanOrEqualTo(java.lang.String value) {
          addCriterion("mch_id", value, ConditionMode.LESS_EQUAL, "mchId", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andMchIdBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("mch_id", value1, value2, ConditionMode.BETWEEN, "mchId", "java.lang.String", "String");
    	  return this;
      }

      public PayMchCriteria andMchIdNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("mch_id", value1, value2, ConditionMode.NOT_BETWEEN, "mchId", "java.lang.String", "String");
          return this;
      }
        
      public PayMchCriteria andMchIdIn(List<java.lang.String> values) {
          addCriterion("mch_id", values, ConditionMode.IN, "mchId", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andMchIdNotIn(List<java.lang.String> values) {
          addCriterion("mch_id", values, ConditionMode.NOT_IN, "mchId", "java.lang.String", "String");
          return this;
      }
	public PayMchCriteria andNameIsNull() {
		isnull("name");
		return this;
	}
	
	public PayMchCriteria andNameIsNotNull() {
		notNull("name");
		return this;
	}
	
	public PayMchCriteria andNameIsEmpty() {
		empty("name");
		return this;
	}

	public PayMchCriteria andNameIsNotEmpty() {
		notEmpty("name");
		return this;
	}
        public PayMchCriteria andNameLike(java.lang.String value) {
    	   addCriterion("name", value, ConditionMode.FUZZY, "name", "java.lang.String", "String");
    	   return this;
      }

      public PayMchCriteria andNameNotLike(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_FUZZY, "name", "java.lang.String", "String");
          return this;
      }
      public PayMchCriteria andNameEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andNameNotEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andNameGreaterThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andNameLessThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("name", value1, value2, ConditionMode.BETWEEN, "name", "java.lang.String", "String");
    	  return this;
      }

      public PayMchCriteria andNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("name", value1, value2, ConditionMode.NOT_BETWEEN, "name", "java.lang.String", "String");
          return this;
      }
        
      public PayMchCriteria andNameIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.IN, "name", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andNameNotIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.NOT_IN, "name", "java.lang.String", "String");
          return this;
      }
	public PayMchCriteria andReqKeyIsNull() {
		isnull("reqKey");
		return this;
	}
	
	public PayMchCriteria andReqKeyIsNotNull() {
		notNull("reqKey");
		return this;
	}
	
	public PayMchCriteria andReqKeyIsEmpty() {
		empty("reqKey");
		return this;
	}

	public PayMchCriteria andReqKeyIsNotEmpty() {
		notEmpty("reqKey");
		return this;
	}
        public PayMchCriteria andReqKeyLike(java.lang.String value) {
    	   addCriterion("reqKey", value, ConditionMode.FUZZY, "reqKey", "java.lang.String", "String");
    	   return this;
      }

      public PayMchCriteria andReqKeyNotLike(java.lang.String value) {
          addCriterion("reqKey", value, ConditionMode.NOT_FUZZY, "reqKey", "java.lang.String", "String");
          return this;
      }
      public PayMchCriteria andReqKeyEqualTo(java.lang.String value) {
          addCriterion("reqKey", value, ConditionMode.EQUAL, "reqKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andReqKeyNotEqualTo(java.lang.String value) {
          addCriterion("reqKey", value, ConditionMode.NOT_EQUAL, "reqKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andReqKeyGreaterThan(java.lang.String value) {
          addCriterion("reqKey", value, ConditionMode.GREATER_THEN, "reqKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andReqKeyGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("reqKey", value, ConditionMode.GREATER_EQUAL, "reqKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andReqKeyLessThan(java.lang.String value) {
          addCriterion("reqKey", value, ConditionMode.LESS_THEN, "reqKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andReqKeyLessThanOrEqualTo(java.lang.String value) {
          addCriterion("reqKey", value, ConditionMode.LESS_EQUAL, "reqKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andReqKeyBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("reqKey", value1, value2, ConditionMode.BETWEEN, "reqKey", "java.lang.String", "String");
    	  return this;
      }

      public PayMchCriteria andReqKeyNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("reqKey", value1, value2, ConditionMode.NOT_BETWEEN, "reqKey", "java.lang.String", "String");
          return this;
      }
        
      public PayMchCriteria andReqKeyIn(List<java.lang.String> values) {
          addCriterion("reqKey", values, ConditionMode.IN, "reqKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andReqKeyNotIn(List<java.lang.String> values) {
          addCriterion("reqKey", values, ConditionMode.NOT_IN, "reqKey", "java.lang.String", "String");
          return this;
      }
	public PayMchCriteria andResKeyIsNull() {
		isnull("resKey");
		return this;
	}
	
	public PayMchCriteria andResKeyIsNotNull() {
		notNull("resKey");
		return this;
	}
	
	public PayMchCriteria andResKeyIsEmpty() {
		empty("resKey");
		return this;
	}

	public PayMchCriteria andResKeyIsNotEmpty() {
		notEmpty("resKey");
		return this;
	}
        public PayMchCriteria andResKeyLike(java.lang.String value) {
    	   addCriterion("resKey", value, ConditionMode.FUZZY, "resKey", "java.lang.String", "String");
    	   return this;
      }

      public PayMchCriteria andResKeyNotLike(java.lang.String value) {
          addCriterion("resKey", value, ConditionMode.NOT_FUZZY, "resKey", "java.lang.String", "String");
          return this;
      }
      public PayMchCriteria andResKeyEqualTo(java.lang.String value) {
          addCriterion("resKey", value, ConditionMode.EQUAL, "resKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andResKeyNotEqualTo(java.lang.String value) {
          addCriterion("resKey", value, ConditionMode.NOT_EQUAL, "resKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andResKeyGreaterThan(java.lang.String value) {
          addCriterion("resKey", value, ConditionMode.GREATER_THEN, "resKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andResKeyGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("resKey", value, ConditionMode.GREATER_EQUAL, "resKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andResKeyLessThan(java.lang.String value) {
          addCriterion("resKey", value, ConditionMode.LESS_THEN, "resKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andResKeyLessThanOrEqualTo(java.lang.String value) {
          addCriterion("resKey", value, ConditionMode.LESS_EQUAL, "resKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andResKeyBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("resKey", value1, value2, ConditionMode.BETWEEN, "resKey", "java.lang.String", "String");
    	  return this;
      }

      public PayMchCriteria andResKeyNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("resKey", value1, value2, ConditionMode.NOT_BETWEEN, "resKey", "java.lang.String", "String");
          return this;
      }
        
      public PayMchCriteria andResKeyIn(List<java.lang.String> values) {
          addCriterion("resKey", values, ConditionMode.IN, "resKey", "java.lang.String", "String");
          return this;
      }

      public PayMchCriteria andResKeyNotIn(List<java.lang.String> values) {
          addCriterion("resKey", values, ConditionMode.NOT_IN, "resKey", "java.lang.String", "String");
          return this;
      }
}